package com.example.myservice2_provider.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author 有点意思
 * @since 2022-12-19
 */
@Data
public class Post implements Serializable {

    private static final long serialVersionUID = 1L;

    private String title;

    private String classification;

    private String content;

    private String topic;

    @TableField(value = "poster_Id")
    private Integer posterID;

    private LocalDateTime createTime;

    private Integer stars;

    private Integer views;

    @TableId(value = "post_id", type = IdType.AUTO)
    private Integer postID;

    private LocalDateTime updateTime;

    private String img;

    //不在数据库中
    @TableField(exist = false)
    private String Postername;
    @TableField(exist = false)
    private String Posterimg;
}
